﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
   public class NoticeBLL
    {
       NoticeDAL dal = new NoticeDAL();
       /// <summary>
       /// 发标
       /// </summary>
       /// <returns></returns>
       public List<Notice> ShowNotice()
       {
           return dal.ShowNotice();
       }
       /// <summary>
       /// 删除信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public int DeleteNotice(int id)
       {
           return dal.DeleteNotice(id);
       }
       /// <summary>
       /// 添加信息
       /// </summary>
       /// <param name="p"></param>
       /// <returns></returns>
       public int Notic_Add(Model.Notice p)
       {
           return dal.Notic_Add(p);
       }
       /// <summary>
       /// 显示详细信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public Notice ShowNoticeX(int id)
       {
           return dal.ShowNoticeX(id);
       }
       /// <summary>
       /// 修改信息
       /// </summary>
       /// <param name="data"></param>
       /// <returns></returns>
       public int UpdateNotice(Notice data)
       {
           return dal.UpdateNotice(data);
       }
       /// <summary>
       /// 搜索
       /// </summary>
       /// <param name="pp"></param>
       /// <returns></returns>
       public List<Notice> SeleteNotice(string name)
       {
           return dal.SeleteNotice(name);
       }
    }
}
